package com.ruoyi.project.training.service.impl;

import com.ruoyi.project.training.domain.Training;
import com.ruoyi.project.training.domain.TrainingCourse;
import com.ruoyi.project.training.mapper.TrainingMapper;
import com.ruoyi.project.training.service.TrainingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TrainingServiceImpl implements TrainingService {
    @Autowired
    private TrainingMapper trainingMapper;

    @Override
    public List<Training> selectTrainList(Training training) {
        return trainingMapper.selectTrainList(training);
    }

    @Override
    public List<String> selectCourseIdById(Integer id) {
        return trainingMapper.selectCourseIdById(id);
    }

    @Override
    public List<TrainingCourse> selectCourseByCode(int code) {
        return trainingMapper.selectCourseByCode(code);
    }

    @Override
    public Training selectTrainingById(Integer id) {
        return trainingMapper.selectTrainingById(id);
    }

}
